#!/bin/bash
cd /
image=$1

ucode_level=`rpm -qa | grep "IBMhsc\.ucode\-mgr\-"`
# rpm --erase $ucode_level

SNM_level=`rpm -qa | grep "IBMhsc\.SNM\-"`
# rpm --erase $SNM_level

SNM_GUI_level=`rpm -qa | grep "IBMhsc\.SNM_GUI\-"`
# rpm --erase $SNM_GUI_level

# rpm --install $image/IBMhsc.ucode-mgr-1.1.1.1-1.i386.rpm
# rpm --install $image/IBMhsc.SNM-1.1.1.1-1.i386.rpm
# rpm --install $image/IBMhsc.SNM_GUI-1.1.1.1-1.i386.rpm

rpm -U --force $image/IBMhsc.ucode-mgr-1.3.3.0-1.i386.rpm
rpm -U --force $image/IBMhsc.SNM-1.3.3.0-1.i386.rpm
rpm -U --force $image/IBMhsc.SNM_GUI-1.3.3.0-1.i386.rpm

exit 0
